package com.cyy.factory_pattern.common;

/**
 * 男铸剑师 实现铸剑Zz接口方法
 */
public class Nan implements Zz{

    private static Ss ss;

    @Override
    public Ss abc(String a) {
        if ("长虹🗡".equals(a)) {
            ss = new Aa();
        } else if ("奔雷🗡".equals(a)) {
            ss = new Ff();
        } else if ("青光🗡".equals(a)) {
            ss = new Ee();
        } else if ("雨花🗡".equals(a)) {
            ss = new Dd();
        } else if ("旋风🗡".equals(a)) {
            ss = new Gg();
        } else {
            System.out.println("铸剑失败");
        }
        return ss;
    }
}
